﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Atomic.Permission.Entities
{
    public class RoleEntity
    {
        [DisplayName("编号")]
        public virtual int ID { set; get; }

        [DisplayName("角色名")]
        [Required]
        [StringLength(20)]
        public virtual string Name { set; get; }

        [DisplayName("描述")]
        [StringLength(255)]
        public virtual string Description { set; get; }

        [DisplayName("顺序")]
        [Required]
        [Range(1, 99999)]
        public virtual int Sort { set; get; }

        [DisplayName("是否启用")]
        public virtual bool Enabled { set; get; }

        /// <summary>
        /// 角色功能点权限
        /// </summary>
        public virtual List<FunPointEntity> FunPoints { set; get; }
    }
}
